import { GlobConfig, GlobEnvConfig } from '@/./../types/config';
import { getAppEnvConfig } from '@/utils';

export const useGlobSetting = (): Readonly<GlobEnvConfig> => {
  const { baseUrl, title, shortName, apiUrl, urlPrefix } = getAppEnvConfig();
  const glob: Readonly<GlobConfig> = { title, baseUrl, shortName, apiUrl, urlPrefix };
  return glob as Readonly<GlobEnvConfig>;
};
